/**
 * 用户相关API
 */

const request = require('../utils/request');

// 用户登录
const login = (code) => {
  return request.post('/user/user/login', { code });
};

// 用户退出登录
const logout = () => {
  return request.post('/user/user/logout', {});
};

module.exports = {
  login,
  logout,
};